cmake_minimum_required(VERSION 2.8)

project(mpp_linux_demo)

set(CMAKE_CXX_STANDARD 11)

if(WIN32)
    include_directories(../../mpp/include/rockchip/)
    include_directories(../../libdrm/)
else()
    include_directories(/usr/include/libdrm/)
endif()

set(SOURCE_FILES main.cpp
        mpp/Codec.cpp
        rkrga/RGA.cpp
        rkdrm/bo.c
        rkdrm/dev.c
        rkdrm/modeset.c)

add_executable(mpp_linux_demo ${SOURCE_FILES})
target_link_libraries(mpp_linux_demo rockchip_mpp pthread drm)
